<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="../../d3.js"></script>
<script>
var dataset=[1.0255546134536,2.02,3.02,4.02,5.02,6.02,7.02,8.02,9.02,10.025435436];
var linearScale = d3.scale.linear()
    .domain([d3.min(dataset), d3.max(dataset)]);
var linearCopy=linearScale.copy();
console.log(linearScale.nice(10).domain());
console.log(linearCopy.nice(0.1).domain());
</script>